#ifndef _COMM_H_
#define _COMM_H_

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#define MSG_BUFFER_LEN 200

typedef struct {
	char msg_buf[MSG_BUFFER_LEN];
	char insert_time[50];
	struct queue_node* next;
} queue_node;

typedef struct {
	queue_node* head;
	queue_node* tail;
	int size;
} Queue;

Queue* init_queue();
int get_size(Queue* queue);
int is_empty(Queue* queue);
int insert_tail(Queue* queue, const char* node_msg);
char* pop_front(Queue* queue);
#endif
